package server;

import java.util.Random;

/** Various utilities for random object generation */
class RandomUtils {

    private static Random rand = new Random();

    /** Returns a random string with chars ['a', 'z'] of length 'len' */
    public String getRandomString(int len) {
        byte[] result = new byte[len];
        for (int i = 0; i < len; ++i) {
            result[i] = (byte)('a' + rand.nextInt('z' - 'a'));
        }

        return new String(result);
    }
};
